
public class Main {
    public static void main(String[] args) {

        Worker w1 = new Worker("李华", 300, 24);
        Worker w2 = new Worker("张三", 270, 41);
        Manager m1=new Manager("曾黎明",350,29);
        Manager m2=new Manager("王丽红",400,35);
        System.out.println(w1.getName()+"工资："+w1.calculateSalary());
        System.out.println(w2.getName()+"工资："+w2.calculateSalary());
        System.out.println(m1.getName()+"工资："+m1.calculateSalary());
        System.out.println(m2.getName()+"工资："+m2.calculateSalary());
    }
}